package com.qf.mybatis01.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 *   `id` int(11) NOT NULL AUTO_INCREMENT,
 *   `name` varchar(50) DEFAULT NULL,
 *   `location` varchar(50) DEFAULT NULL,
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department {

    private Integer id;

    private String name;

    private String location;

    // 代表当前部门所拥有的员工
    private List<Employee> employees;

}
